
package vincent.com.layouttest.multidex;

public class DexFile {
    private String title;

    private boolean loaded;

    private boolean checked;

    public DexFile(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isLoaded() {
        return loaded;
    }

    public void setLoaded(boolean loaded) {
        this.loaded = loaded;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof DexFile) {
            return ((DexFile) o).getTitle().equals(title);
        } else {
            return false;
        }
    }
    
    @Override
	public int hashCode () {
		int result = 17;
		int c;

		c = (title == null ? 0 : title.hashCode());
		result = 37 * result + c;

		return result;
	}

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }
}
